package com.way.common.core.enums;

import lombok.Getter;

/**
 * 返回结果枚举
 *
 * @author lewis
 * @Date 2024-12-07
 */
@Getter
public enum ResultCode {

    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败");

    private final Integer code;
    private final String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
